package com.base.destroy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

/**
 * Description
 * Author wangxh
 * Date 2020/7/17-2:21 下午
 * Version V1.0
 **/

@Component
public class PreDestroyImpl {

    private static final Logger logger = LoggerFactory.getLogger(PreDestroyImpl.class);

    @PreDestroy
    public void destroy () {
        logger.info("*********PreDestroy.destroy()*********");
    }

}
